<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addBuMen.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <center>
    	<h2>保存部门信息</h2>
        <hr style=" border:1px solid" /><br/>
        
        <s:form action="departinfoactionsave" method="post" namespace="/">
        	<table height="300px;">        		 
        		<tr>
        			<td>部门名称</td>
        			<td><s:textfield name="d.departname"></s:textfield></td>
        		</tr>        		
        		<tr>
        			<td>部门负责人</td>
        			<td><s:select name="d.userinfo.userid" list="%{#session.dptlist}" listKey="userinfo.userid" listValue="userinfo.username"></s:select></td>
        		</tr>
        		<tr>
        			<td>联系电话</td>
        			<td><s:textfield name="d.connecttelno"></s:textfield></td>
        		</tr>
        		<tr>
        			<td>移动电话</td>
        			<td><s:textfield name="d.connectmobiletelno"></s:textfield></td>
        		</tr>
        		<tr>
        			<td>传真</td>
        			<td><s:textfield name="d.faxes"></s:textfield></td>
        		</tr>
        		<tr>
        			<td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:submit value="提交"></s:submit>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <s:reset value="重置"></s:reset></td>
        		</tr>
       		</table>
        </s:form>
       
  </body>
</html>
